package com.blue.http.annotation;

import com.blue.core.file.IClassHandler;

/**
 * 扫描HttpFilter类配置
 * 
 * @author zhengj
 * @since 1.0 2016年7月21日
 */
public class HttpFilterClassHandler implements IClassHandler
{
	private HttpFilterParser parser;

	public HttpFilterClassHandler(HttpFilterParser parser)
	{
		this.parser = parser;
	}

	@Override
	public void handle(Class<?> clazz)
	{
		if (clazz.isAnnotationPresent(HttpFilter.class))
		{
			parser.parse(clazz);
		}
		
	}
	
}
